﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Componnent.Entities.Authen;
using WaterRevenueMS.Domain.Common.Models;
using WaterRevenueMS.Componnent.Common;
using WaterRevenueMS.Domain.ViewModels.Authen.Permission;

namespace WaterRevenueMS.Core.Service.Authen
{
    public interface IPermissionService
    {
        IQueryable<Permission> Permissions { get; }

        #region 公共方法
        /// <summary>
        /// 复选框数据源
        /// </summary>
        /// <returns></returns>
        List<KeyValueModel> GetKeyValueList();

        OperationResult Insert(PermissionModel model);

        OperationResult Update(PermissionModel model);

        OperationResult Delete(int Id);

        #endregion
    }
}
